/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cassandrawindow;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class HandleDataTableZoneDateV2 {
    public static final String KEYSPACE                         =   "AdsData";
    public static final String ColumFamly                       =   "BannerViewCountCf";
    public static final String ColumFamlyBannerClickCountCf     =   "BannerClickCountCf";
    public static final String ColumFamlyBannerViewCountCf      =   "BannerViewCountCf";

    public static final String ColumFamlyCampaignClickCountCf   =   "CampaignCountCf";
    public static final String ColumFamlyCampaignViewCountCf    =   "CampaignViewCountCf";

    public static final String ColumFamlyDomainDateCf           =   "BzSuperBannerDomainDateCf";
    public static final String ColumFamlyZoneDateCf             =   "BzSuperBannerZoneDateCf";


    public void handleData() throws ParseException, InterruptedException
    {
        CassandraAction cassAct = new CassandraAction(ACCOUNT.CLUSTERNAME ,ACCOUNT.URL, ACCOUNT.PORT);
        cassAct.initReadWirte(KEYSPACE);
        MysqlDataManagerMain mysqldatamanager = new MysqlDataManagerMain();
        MysqlDataManager mysql = new MysqlDataManager();
        String currentDate = TimeUtil.getCurrentTimeInString();//2012-07-24
        //String currentDate = CONSTANT.Date;
        cassAct.getZoneDateCPM(currentDate, ColumFamlyZoneDateCf,mysql,mysqldatamanager);
        Debug.println("success ZoneDate");
    }
}
